import Vue from 'vue'
import App from './App.vue'
import Header from '@/components/Header'
import Footer from '@/components/Footer'
import TypeNav from '@/components/typeNav'
import { Swiper, SwiperSlide } from 'vue-awesome-swiper'
import 'swiper/css/swiper.min.css'
import '@/utils/request'
Vue.config.productionTip = false

Vue.component(Header.name, Header)
Vue.component(Footer.name, Footer)
Vue.component(TypeNav.name, TypeNav)
Vue.component('Swiper', Swiper)
Vue.component('SwiperSlide', SwiperSlide)
import router from '@/router'
import store from './store'
import '@/mock/mockServe'
new Vue({
  render: h => h(App),
  router,
  store,
  beforeCreate() {
    Vue.prototype.$bus = this;
  }
}).$mount('#app')
